# coding=utf-8
STR = u'元芳,你怎么看'
g = lambda x,y: x.replace('a', 'ss'+'(a)')


def f1(n):
    if n==1:
        return STR
    else:
        return STR+'('+f1(n-1)+')'

def f2(n):
    return (STR + '(')*(n-1) + STR + ')'*(n-1)

def f3(n):
    return reduce(lambda x,y: x.replace('a', STR+'(a)'), range(n-1), 'a').replace('a', STR)

print f1(5)
print f2(5)
print f3(5)